<template>
  <div class="reimbursement-container">
    <!-- 顶部导航栏 -->
    <header class="top-header">
      <div class="logo-container">
        <img src="@/assets/logo.png" alt="Logo" class="logo-img">
        <span class="system-title">东软医保报销: 医保报销</span>
      </div>
      <div class="header-right">
        <LogoutButton />
      </div>
    </header>
    
    <div class="main-content">
      <!-- 左侧菜单 -->
      <aside class="side-menu">
        <div class="menu-container">
          <!-- 参保人员信息管理菜单项 -->
          <router-link to="/reimbursement/participant-info" class="menu-item top-level-menu" active-class="active">
            <span class="menu-icon">👤</span>
            <span>参保人员信息管理</span>
          </router-link>
          
          <!-- 参保人员费用查询菜单项 -->
          <router-link to="/reimbursement/participant-expense" class="menu-item top-level-menu" active-class="active">
            <span class="menu-icon">💰</span>
            <span>参保人员费用查询</span>
          </router-link>
          
          <!-- 参保人员费用报销菜单项 -->
          <router-link to="/reimbursement/participant-list" class="menu-item top-level-menu" active-class="active">
            <span class="menu-icon">📝</span>
            <span>参保人员费用报销</span>
          </router-link>
        </div>
      </aside>
      
      <!-- 右侧内容区域 -->
      <main class="content-area">
        <router-view />
      </main>
    </div>
  </div>
</template>

<script setup>
import LogoutButton from '@/components/LogoutButton.vue';
</script>

<style scoped>
.reimbursement-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

/* 顶部导航栏样式 */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  background-color: #303643;
  color: white;
  padding: 0 20px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  margin-right: 10px;
}

.system-title {
  font-size: 18px;
  font-weight: 500;
}

.header-right {
  cursor: pointer;
}

/* 主要内容区域样式 */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* 侧边菜单样式 */
.side-menu {
  width: 220px;
  height: 100%;
  background-color: #3A4153;
  color: white;
  overflow-y: auto;
}

.menu-container {
  padding: 10px 0;
}

.menu-title {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
}

.menu-icon {
  margin-right: 10px;
}

.top-level-menu {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 16px;
  padding: 15px 20px;
}

.menu-item {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
  background-color: #409EFF;
}

/* 内容区域样式 */
.content-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #F5F7FA;
}
</style> 